import express from "express";
import {
    createTransaction,
    deleteTransactionById,
    getSummaryByUserId,
    getTransactionByUserId
} from "../controllers/transactionsController.js";

const router = express.Router();

router.post("/", createTransaction);
router.get("/:userId", getTransactionByUserId)
router.delete("/:id", deleteTransactionById)
router.get("/summary/:userId", getSummaryByUserId)

export default router;
